// part1:C15:15.28:ex15.28.cpp
// test Quote.h and Bulk_quote.h
#include "Quote.h"
#include "Bulk_quote.h"
#include <iostream>
#include <vector>
#include <ostream>

int main(int argc, char *argv[])
{
    vector<Quote> itemVec;
    for (size_t i = 0; i != 10; ++i) 
    {
        Bulk_quote item("C++ Primer", 6, 5, 0.5);  
        itemVec.push_back(item);
    }
    double sum = 0.0;
    for (vector<Quote>::iterator iter = itemVec.begin(); iter != itemVec.end(); ++iter) 
    {
        sum += iter->net_price(10);  
    }
    cout << sum << endl;
    
    return 0;
}
